package com.Hsu.demo.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author Hsu琛君珩
 * @ClassName:AspectDemo2
 * @date 2024-01-16
 * @apiNote
 * @Version: v1.0
 */

@Slf4j
@Aspect
//@Component
@Order(1)
public class AspectDemo2 {
    @Before("com.Hsu.demo.aspect.AspectDemo.pt()")
    public void doBefore() {
        log.info("执⾏ AspectDemo2 Before ⽅法");
    }

    @After("com.Hsu.demo.aspect.AspectDemo.pt()")
    public void doAfter() {
        log.info("执⾏ AspectDemo2 After ⽅法");
    }
}